from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
import os
admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^hgWeb/', include('hgWeb.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    (r'^admin/', include(admin.site.urls)),
    (r'^hg/$', 'hgWeb.hg.views.index'),
    (r'^hg/login/$', 'hgWeb.hg.views.login'),
    (r'^hg/add/$', 'hgWeb.hg.views.add'),
    (r'^hg/site_media/(.*)$', 'django.views.static.serve', 
        {'document_root': os.path.join(os.path.dirname(__file__), 'hg/site_media')}
     ),
)
